/**
 * 
 */
package com.globalresources.business.impl;
import com.globalresources.commons.Pager;
import com.globalresources.commons.PagerService;
import com.globalresources.dao.inface.INewsDao;
import com.globalresources.business.inface.INewsService;
import com.globalresources.dao.hibernate.NewsDaoHibernate;
import com.globalresources.po.News;
import java.util.List;

/**
 * @author songduanlei@gmail.com
 *
 */
public class NewsServiceImpl implements INewsService{
	private INewsDao newsDao;
	private Pager pager;	
	private PagerService pagerService;
	private String currentPage;
	private String pagerMethod;
	private String totalRow;
	
	public List<News> getNewsList(){		
		return newsDao.findAll();
		
	}

	/**
	 * @return the newsDao
	 */
	public INewsDao getNewsDao() {
		return newsDao;
	}

	/**
	 * @param newsDao the newsDao to set
	 */
	public void setNewsDao(INewsDao newsDao) {
		this.newsDao = newsDao;
	}

	/**
	 * @return the pager
	 */
	public Pager getPager() {
		return pager;
	}

	/**
	 * @param pager the pager to set
	 */
	public void setPager(Pager pager) {
		this.pager = pager;
	}

	/**
	 * @return the pagerService
	 */
	public PagerService getPagerService() {
		return pagerService;
	}

	/**
	 * @param pagerService the pagerService to set
	 */
	public void setPagerService(PagerService pagerService) {
		this.pagerService = pagerService;
	}

	/**
	 * @return the pagerMethod
	 */
	public String getPagerMethod() {
		return pagerMethod;
	}

	/**
	 * @param pagerMethod the pagerMethod to set
	 */
	public void setPagerMethod(String pagerMethod) {
		this.pagerMethod = pagerMethod;
	}

	/**
	 * @return the totalRow
	 */
	public String getTotalRow() {
		return totalRow;
	}

	/**
	 * @param totalRow the totalRow to set
	 */
	public void setTotalRow(String totalRow) {
		this.totalRow = totalRow;
	}
	
	
	
}
